﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace NetCoreTest_V1.Controllers
{
    /// <summary>
    /// 注释一定要做好！
    /// </summary>
    public class HomeController : Controller
    {
        public IActionResult Index()
        {
            return View();
        }

        public IActionResult About()
        {
            ViewData["Message"] = "我的第一个NetCore程序.";

            return View();
        }

        public IActionResult Contact()
        {
            ViewData["Message"] = "联系我们.";

            return View();
        }

        public IActionResult Error()
        {
            return View();
        }
    }
}
